<div class="right01"><img src="content/images/04.gif" /> <a href="<?php echo site_url(); ?>/C_Main/index/">主页</a> &gt; <span>订单信息列表</span> 
    <span style="position:absolute;right:0px; padding-right: 15px">
        <span style="cursor:pointer" onclick="window.location.href='<?php echo site_url(); ?>/customers/C_Customers_Edit';">[新建]</span> &nbsp;&nbsp;
    </span>
</div>

<div>
    <table id="table-element" class="tables">
        <thead>
            <tr>
                <th>编号</th>
                <th>新郎</th>
                <th>新娘</th>
                <th>手机</th>
                <th>固定电话</th>
                <th>结婚日期</th>
                <th>取件日期</th>
                <th>套系</th>
                <th>金额总计(元)</th>
                <th>未付金额(元)</th>
                <th>创建人</th>
                <th>操作</th>
                <th>操作</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <?PhP
            if (is_array($listView)) {
                foreach ($listView as $productList) {
                    ?>
                    <tr>
                        <td><?PHP echo $productList['cu_id']; ?></td>
                        <td><?PHP echo $productList['cu_groom']; ?></td>
                        <td><?PHP echo $productList['cu_bride']; ?></td>
                        <td><?PHP echo $productList['cu_cellphone']; ?></td>
                        <td><?PHP echo $productList['cu_phone']; ?></td>
                        <td><?PHP echo date('Y-m-d', strtotime($productList['cu_marrydate'])); ?></td>
                        <td><?PHP echo date('Y-m-d', strtotime($productList['cu_takedate'])); ?></td>
                        <td><?PHP echo $productList['se_name']; ?></td>
                        <td><?PHP echo $productList['cu_total']; ?></td>
                        <td><?PHP echo $productList['cu_unpaid']; ?></td>
                        <td><?PHP echo $productList['u_name']; ?></td>
                        <td><a href="<?php echo site_url(); ?>/customers/C_Customers_Edit/show_index/<?PHP echo $productList['cu_id']; ?>">[查看]</a></td>
                        <td><a href="<?php echo site_url(); ?>/customers/C_Customers_Edit/index/<?PHP echo $productList['cu_id']; ?>">[编辑]</a></td>
                        <td><a href="javascript:void(0);" onClick="del('<?PHP echo $productList['cu_id']; ?>')">[删除]</a></td>
                    </tr>
                    <?PhP
                }
            }
            ?>
        </tbody>
    </table>
</div>
<script id="scriptInit" type="text/javascript">
    function del(id){
        $.prompt("是否删除该信息？", {
            title: "提示",
            buttons: { "删除": true, "取消": false },
            submit: function(e,v,m,f){
                if (v) {
                    window.location.href="<?php echo site_url(); ?>/customers/C_Customers_List/delete/"+id;
                }
            }
        });
    }
</script>